package com.eva.apidoc;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Schema(description = "接口文档参数配置")
@Configuration
@ConfigurationProperties(prefix = "app.apidoc", ignoreInvalidFields = true)
public class ApiDocProperties {

    @Schema(description = "是否启用")
    private Boolean enabled;

    @Schema(description = "文档名称")
    private String title;

    @Schema(description = "文档描述")
    private String description;

    @Schema(description = "禁用时的重定向地址")
    private String redirectUri;
}
